#include <bits/stdc++.h>
using namespace std;

int main() {
  int k;
  cin >> k;
  char fu;
  long long sum = k;
  while (cin >> fu >> k) {
    if (fu == '+') {
      sum += k;   
    } else if (fu == '-') {
      sum -= k;
    }
  }

  cout << sum << endl;
  return 0;
}